package com.ruoyi.miniapp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 共享床位信息对象 t_bed
 * 
 * @author ruoyi
 * @date 2022-10-23
 */
public class Bed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 床位id */
    private Long bedId;

    /** 床位编号 */
    @Excel(name = "床位编号")
    private String bedCode;

    /** 医院ID */
    @Excel(name = "医院ID")
    private Long hospitalId;

    /** 医院科室ID */
    @Excel(name = "医院科室ID")
    private Long deptId;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String unitType;

    /** 厂家联系地址 */
    @Excel(name = "厂家联系地址")
    private String manufacturerAddress;

    /** 厂家联系电话 */
    @Excel(name = "厂家联系电话")
    private String manufacturerPhone;

    /** 厂家联系人 */
    @Excel(name = "厂家联系人")
    private String manufacturerContactor;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 状态关机-1, 0闲，1忙，2异常 */
    @Excel(name = "状态关机-1, 0闲，1忙，2异常")
    private Long status;

    /** 电池电量 */
    @Excel(name = "电池电量")
    private String batteryLevel;

    /** 蓝牙地址 */
    @Excel(name = "蓝牙地址")
    private String bluetoothAddress;

    /** 信号强度 */
    @Excel(name = "信号强度")
    private String signalLevel;

    /** 开锁时电压 */
    @Excel(name = "开锁时电压")
    private String batteryLevelOpen;

    /** 最后一次状态更新时间 */
    @Excel(name = "最后一次状态更新时间")
    private String dateUpdateStatus;

    /** 签单者 */
    @Excel(name = "签单者")
    private Long userId;

    public void setBedId(Long bedId) 
    {
        this.bedId = bedId;
    }

    public Long getBedId() 
    {
        return bedId;
    }
    public void setBedCode(String bedCode) 
    {
        this.bedCode = bedCode;
    }

    public String getBedCode() 
    {
        return bedCode;
    }
    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUnitType(String unitType) 
    {
        this.unitType = unitType;
    }

    public String getUnitType() 
    {
        return unitType;
    }
    public void setManufacturerAddress(String manufacturerAddress) 
    {
        this.manufacturerAddress = manufacturerAddress;
    }

    public String getManufacturerAddress() 
    {
        return manufacturerAddress;
    }
    public void setManufacturerPhone(String manufacturerPhone) 
    {
        this.manufacturerPhone = manufacturerPhone;
    }

    public String getManufacturerPhone() 
    {
        return manufacturerPhone;
    }
    public void setManufacturerContactor(String manufacturerContactor) 
    {
        this.manufacturerContactor = manufacturerContactor;
    }

    public String getManufacturerContactor() 
    {
        return manufacturerContactor;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setBatteryLevel(String batteryLevel) 
    {
        this.batteryLevel = batteryLevel;
    }

    public String getBatteryLevel() 
    {
        return batteryLevel;
    }
    public void setBluetoothAddress(String bluetoothAddress) 
    {
        this.bluetoothAddress = bluetoothAddress;
    }

    public String getBluetoothAddress() 
    {
        return bluetoothAddress;
    }
    public void setSignalLevel(String signalLevel) 
    {
        this.signalLevel = signalLevel;
    }

    public String getSignalLevel() 
    {
        return signalLevel;
    }
    public void setBatteryLevelOpen(String batteryLevelOpen) 
    {
        this.batteryLevelOpen = batteryLevelOpen;
    }

    public String getBatteryLevelOpen() 
    {
        return batteryLevelOpen;
    }
    public void setDateUpdateStatus(String dateUpdateStatus) 
    {
        this.dateUpdateStatus = dateUpdateStatus;
    }

    public String getDateUpdateStatus() 
    {
        return dateUpdateStatus;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bedId", getBedId())
            .append("bedCode", getBedCode())
            .append("hospitalId", getHospitalId())
            .append("deptId", getDeptId())
            .append("unitType", getUnitType())
            .append("manufacturerAddress", getManufacturerAddress())
            .append("manufacturerPhone", getManufacturerPhone())
            .append("manufacturerContactor", getManufacturerContactor())
            .append("addTime", getAddTime())
            .append("status", getStatus())
            .append("batteryLevel", getBatteryLevel())
            .append("bluetoothAddress", getBluetoothAddress())
            .append("signalLevel", getSignalLevel())
            .append("batteryLevelOpen", getBatteryLevelOpen())
            .append("dateUpdateStatus", getDateUpdateStatus())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .toString();
    }
}
